<form method="post" action="">
<label>User Name</label>
<input name="username"/><br />
<label>Password</label>
<input type="password" name="password"/>
<input type="hidden" value="" name="hUrl"/>
<br />
<input type="submit"/>
</form>

<?php 
if (realpath($system_path) !== FALSE)
{
	$system_path = realpath($system_path).'/';
}

// ensure there's a trailing slash
$system_path = rtrim($system_path, '/').'/';

//echo $system_path;

define('BASEPATH', str_replace("\\", "/", $system_path));
define('EXT','.php');

//ob_start();
//ob_implicit_flush(0);
session_start();
defined('BASE_PATH') || define('BASE_PATH', realpath(dirname(__FILE__)));
include_once ("config/config.php");
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
	$u	=	$_POST['username'];
	$p	=	$_POST['password'];
	$phpsessid	=	$_COOKIE['PHPSESSID'];
	
	//$DB->query("insert into sso_sessions(PHPSESSID,items)values('".$phpsessid."','".$u."')");
	//header("location:");
	echo "ok";
}
?>